package comday08.itheima02;

public class Demo04 {
    public static void main(String[] args) {

        //String

        String s = "";

        //获取当前时间毫秒值
        long time1 = System.currentTimeMillis();

        for (int i = 0; i < 1000000; i++) {
            s += "a";
        }

        //获取当前时间毫秒值
        long time2 = System.currentTimeMillis();

        System.out.println((time2-time1)+"毫秒");
    }
}
